﻿
Partial Class PopUp
    Inherits System.Web.UI.Page

    Protected Sub btnPopUp_Click(sender As Object, e As EventArgs) Handles btnPopUp.Click
        PopUp1.Show("Hello!!", MessageType.Information)
    End Sub

    Protected Sub btnConfirm_Click(sender As Object, e As EventArgs) Handles btnConfirm.Click
        PopUp2.Confirm("Confirm", "Do you like jQuery?", "Yes", "Not at all")
    End Sub

    Protected Sub btnPrompt_Click(sender As Object, e As EventArgs) Handles btnPrompt.Click
        PopUp3.Show("What's your name", MessageType.Prompt)
    End Sub


    Protected Sub PopUp2_Click(sender As Object, e As EventArgs) Handles PopUp2.Click
        PopUp1.Show("Confirm Result", "Your answer has been: " & PopUp2.CallbackPrompt, MessageType.Information)
    End Sub

    Protected Sub PopUp3_Click(sender As Object, e As EventArgs) Handles PopUp3.Click
        If PopUp3.CallbackPrompt Then
            PopUp1.Show("Prompt Result", String.Format("Nice to meet you {0}", PopUp3.ValuePrompt), MessageType.Information)
        End If
    End Sub
End Class
